#coding=utf-8
class Category:
    def getId(self,key):
        data = {
                "clothes":{"id":16,"name":"靓衣","group_id":1,"key":"clothes"},
                "shoes":{"id":50006843,"name":"美鞋","group_id":2,"key":"shoes"},
                "bags":{"id":50006842,"name":"潮包","group_id":3,"key":"bags"},
                "accessories":{"id":50013864,"name":"配饰","group_id":4,"key":"accessories"}
                }
        if data.has_key(key):
            return data[key]
        else:
            return None

    def get(self,key):
        data = {}
        data["all"] = [{"name":"当季热销",
            "item":[
                {"name":'卫衣'},
                {"name":'雪纺衫'},
                {"name":'开衫','class':'hot'},
                {"name":'衬衫'},
                {"name":'T恤'},
                {"name":'针织衫'},
                {"name":'帆布鞋'},
                {"name":'单肩包'}
                ]
            },
            {"name":"人气搜索",
            "item":[
                {"name":'街拍','class':'hot'},
                {"name":'徐濠萦'},
                {"name":'春夏新款'},
                {"name":'LENA'},
                {"name":'轻松熊'},
                {"name":'欧美'},
                {"name":'ayuki'},
                {"name":'混搭'}
                ]
            },
            {"name":"场合",
            "item":[
                {"name":'约会'},
                {"name":'婚礼'},
                {"name":'运动'},
                {"name":'度假'},
                {"name":'休闲','class':'hot'},
                {"name":'旅行'},
                {"name":'职场','class':'hot'},
                {"name":'居家'}
                ]
            },
            {"name":"风格",
            "item":[
                {"name":'OL'},
                {"name":'日韩'},
                {"name":'欧美'},
                {"name":'英伦','class':'hot'},
                {"name":'复古'},
                {"name":'森女'},
                {"name":'百搭'},
                {"name":'性感','class':'hot'},
                {"name":'可爱'},
                {"name":'甜美'},
                {"name":'学院'},
                {"name":'民族风'}
                ]
            },
            {"name":"元素",
            "item":[
                {"name":'蕾丝','class':'hot'},
                {"name":'印花'},
                {"name":'爱心'},
                {"name":'糖果色'},
                {"name":'格纹'},
                {"name":'蝴蝶结','class':'hot'},
                {"name":'波点'},
                {"name":'雪纺','class':'hot'},
                {"name":'豹纹'},
                {"name":'镂空'},
                {"name":'流苏','class':'hot'},
                {"name":'宽松'}
                ]
            }
        ]
        '''
        衣服
        '''
        data["clothes"] = [{"name":"上装",
            "item":[
                {"name":'卫衣'},
                {"name":'雪纺衫'},
                {"name":'开衫','class':'hot'},
                {"name":'毛衣'},
                {"name":'衬衫'},
                {"name":'T恤'},
                {"name":'针织衫'},
                {"name":'西装'},
                ]
            },
            {"name":"裙子",
            "item":[
                {"name":'短裙','class':'hot'},
                {"name":'连衣裙'},
                {"name":'花苞裙'},
                {"name":'长裙'},
                {"name":'抹胸裙'},
                {"name":'背心裙'},
                {"name":'莲蓬裙','class':'hot'},
                {"name":'碎花裙','class':'hot'}
                ]
            },
            {"name":"裤子",
            "item":[
                {"name":'牛仔裤'},
                {"name":'哈伦裤'},
                {"name":'小脚裤'},
                {"name":'铅笔裤'},
                {"name":'连体裤','class':'hot'},
                {"name":'短裤'},
                {"name":'直筒裤','class':'hot'},
                {"name":'九分裤'}
                ]
            },
            {"name":"风格",
            "item":[
                {"name":'日韩'},
                {"name":'欧美'},
                {"name":'英伦','class':'hot'},
                {"name":'复古'},
                {"name":'森女'},
                {"name":'中性'},
                {"name":'百搭'},
                {"name":'性感','class':'hot'},
                {"name":'甜美'},
                {"name":'简约'},
                {"name":'学院'},
                {"name":'民族风'}
                ]
            },
            {"name":"元素",
            "item":[
                {"name":'蕾丝','class':'hot'},
                {"name":'印花'},
                {"name":'爱心'},
                {"name":'糖果色'},
                {"name":'高腰'},
                {"name":'格纹'},
                {"name":'情侣'},
                {"name":'蝴蝶结','class':'hot'},
                {"name":'波点'},
                {"name":'雪纺','class':'hot'},
                {"name":'豹纹'},
                {"name":'镂空'},
                {"name":'宽松'}
                ]
            }
        ]
        '''
        美鞋
        '''
        data["shoes"] = [{"name":"当季热款",
            "item":[
                {"name":'单鞋'},
                {"name":'凉鞋'},
                {"name":'平底鞋','class':'hot'},
                {"name":'高跟鞋'},
                {"name":'坡跟鞋'},
                {"name":'尖头鞋'},
                {"name":'鱼嘴鞋'},
                {"name":'帆布鞋'},
                ]
            },
            {"name":"鞋型",
            "item":[
                {"name":'坡跟','class':'hot'},
                {"name":'尖头'},
                {"name":'圆头'},
                {"name":'厚底'},
                {"name":'高跟'},
                {"name":'粗跟'},
                {"name":'鱼嘴','class':'hot'},
                {"name":'防水台','class':'hot'}
                ]
            },
            {"name":"材质",
            "item":[
                {"name":'帆布'},
                {"name":'漆皮'},
                {"name":'PU'},
                {"name":'马毛'},
                {"name":'水钻','class':'hot'},
                {"name":'猪皮'},
                {"name":'皮毛一体','class':'hot'},
                {"name":'牛皮'}
                ]
            },
            {"name":"风格",
            "item":[
                {"name":'欧美'},
                {"name":'英伦','class':'hot'},
                {"name":'复古'},
                {"name":'朋克'},
                {"name":'日系'},
                {"name":'优雅'},
                {"name":'韩系','class':'hot'},
                {"name":'OL'},
                {"name":'休闲'},
                {"name":'罗马'},
                {"name":'学院'},
                {"name":'百搭'}
                ]
            },
            {"name":"元素",
            "item":[
                {"name":'铆钉','class':'hot'},
                {"name":'波点'},
                {"name":'蕾丝'},
                {"name":'碎花'},
                {"name":'草编'},
                {"name":'豹纹'},
                {"name":'花朵'},
                {"name":'流苏','class':'hot'},
                {"name":'水钻'},
                {"name":'糖果色','class':'hot'},
                {"name":'蝴蝶结'}
                ]
            }
        ]
        '''
        包包
        '''
        data["bags"] = [{"name":"热门推荐",
            "item":[
                {"name":'化妆包'},
                {"name":'信封包'},
                {"name":'单肩包','class':'hot'},
                {"name":'双肩包'},
                {"name":'手拿包'},
                {"name":'复古包'},
                {"name":'零钱包'},
                {"name":'水桶包'},
                ]
            },
            {"name":"用途",
            "item":[
                {"name":'卡包','class':'hot'},
                {"name":'钥匙包'},
                {"name":'手机包'},
                {"name":'晚宴包'},
                {"name":'旅行包'},
                {"name":'相机包'},
                {"name":'机车包','class':'hot'},
                {"name":'购物包','class':'hot'}
                ]
            },
    
            {"name":"风格",
            "item":[
                {"name":'欧美'},
                {"name":'森林系','class':'hot'},
                {"name":'复古'},
                {"name":'学院'},
                {"name":'百搭'},
                {"name":'甜美'},
                {"name":'英伦','class':'hot'},
                {"name":'通勤'},
                ]
            },
            {"name":"元素",
            "item":[
                {"name":'流苏','class':'hot'},
                {"name":'拼接'},
                {"name":'豹纹'},
                {"name":'链条'},
                {"name":'蝴蝶结'},
                {"name":'铆钉'},
                {"name":'水钻'},
                {"name":'菱格纹','class':'hot'},
                {"name":'锁扣'},
                {"name":'波点','class':'hot'},
                {"name":'蕾丝'}
                ]
            }
        ]
        '''
        配饰
        '''
        data["accessories"] = [{"name":"热门推荐",
            "item":[
                {"name":'丝巾'},
                {"name":'短袜'},
                {"name":'假领子','class':'hot'},
                {"name":'长项链'},
                {"name":'连裤袜'},
                {"name":'帽子'},
                {"name":'发带'},
                {"name":'锁骨链'},
                ]
            },
            {"name":"服饰配件",
            "item":[
                {"name":'围巾','class':'hot'},
                {"name":'眼镜'},
                {"name":'帽子'},
                {"name":'腰带'},
                {"name":'墨镜'},
                {"name":'袜子'},
                {"name":'手表','class':'hot'},
                {"name":'披肩','class':'hot'}
                ]
            },
    
            {"name":"首饰配件",
            "item":[
                {"name":'项链'},
                {"name":'手镯','class':'hot'},
                {"name":'手链'},
                {"name":'戒指'},
                {"name":'发饰'},
                {"name":'耳钉'},
                {"name":'耳环','class':'hot'},
                {"name":'脚链'},
                ]
            },
            {"name":"风格",
            "item":[
                {"name":'复古','class':'hot'},
                {"name":'甜美'},
                {"name":'日系'},
                {"name":'欧美'},
                {"name":'简约'},
                {"name":'朋克'},
                {"name":'民族'},
                {"name":'摇滚','class':'hot'},
                {"name":'波西米亚'},
                {"name":'个性','class':'hot'},
                {"name":'森系'},
                {"name":'手作'}
                ]
            }
            ,
            {"name":"元素",
            "item":[
                {"name":'印花','class':'hot'},
                {"name":'宝石'},
                {"name":'纯银'},
                {"name":'镂空'},
                {"name":'镶钻'},
                {"name":'水晶'},
                {"name":'蕾丝'},
                {"name":'羽毛','class':'hot'},
                {"name":'图案'},
                {"name":'编织','class':'hot'},
                {"name":'珍珠'},
                {"name":'碎花'}
                ]
            }
        ]
        '''
        家具
        '''
        data["home"] = [{"name":"最IN单品",
            "item":[
                {"name":'伞'},
                {"name":'马克杯'},
                {"name":'抱枕','class':'hot'},
                {"name":'饭盒'},
                {"name":'镜子'},
                {"name":'LOMO'},
                {"name":'手机壳'},
                {"name":'闹钟'},
                ]
            },
            {"name":"贴心百货",
            "item":[
                {"name":'餐具','class':'hot'},
                {"name":'香薰'},
                {"name":'相框'},
                {"name":'纸巾盒'},
                {"name":'首饰盒'},
                {"name":'床品'},
                {"name":'储蓄罐','class':'hot'},
                {"name":'铁盒','class':'hot'}
                ]
            },
    
            {"name":"文具",
            "item":[
                {"name":'创意礼品'},
                {"name":'笔','class':'hot'},
                {"name":'相册'},
                {"name":'明信片'},
                {"name":'钥匙扣'},
                {"name":'笔筒'},
                {"name":'贴纸','class':'hot'},
                {"name":'笔记本'},
                ]
            },
            {"name":"家纺",
            "item":[
                {"name":'坐垫','class':'hot'},
                {"name":'地毯'},
                {"name":'防滑垫'},
                {"name":'桌布'},
                {"name":'U型枕'},
                {"name":'浴巾'},
                {"name":'毯子'},
                {"name":'窗帘扣','class':'hot'},
                {"name":'枕头'},
                {"name":'防尘罩','class':'hot'},
                {"name":'纸巾套'}
                ]
            }
            ,
            {"name":"元素",
            "item":[
                {"name":'轻松熊','class':'hot'},
                {"name":'kitty'},
                {"name":'宜家'},
                {"name":'ZAKKA'},
                {"name":'韩式'},
                {"name":'DIY'},
                {"name":'和风'},
                {"name":'实木','class':'hot'},
                {"name":'地中海'},
                {"name":'浪漫','class':'hot'},
                {"name":'田园'},
                {"name":'机器猫'}
                ]
            }
        ]
        return data[key]
